<template>
    <div> 
        <el-table border style="width: 100%" :data="dataList">
          <el-table-column prop="inpatient_number" align="center" label="住院号">
          </el-table-column>
          <el-table-column prop="name" align="center" label="姓名">
			  <template slot-scope="scope">
				  <el-link type="primary" :underline="false" @click="$router.push('/patient')">{{scope.row.name}}</el-link>
			  </template>
          </el-table-column>
          <el-table-column prop="history_number" align="center" label="历史住院号">
          </el-table-column>
          <el-table-column prop="bed_number" align="center" label="床号">
          </el-table-column>
          <el-table-column prop="sex" align="center" label="性别">
          </el-table-column>
          <el-table-column prop="age" align="center" label="年龄">
          </el-table-column>
          <el-table-column prop="day" align="center" label="住院天数">
          </el-table-column>
          <el-table-column prop="department" align="center" label="科室">
          </el-table-column>
          <el-table-column prop="region" align="center" label="病区">
          </el-table-column>
          <el-table-column prop="doctor" align="center" label="责任医生">
          </el-table-column>
          <el-table-column prop="measure_number" align="center" label="测量次数">
          </el-table-column>
          <el-table-column prop="blood_sugar" align="center" label="最近血糖">
          </el-table-column>
          <el-table-column
            align="center"
            label="操作"
			width="260px"
          >
			<div class="flex">
				<el-button size="mini">详情</el-button>
				<el-button size="mini">医嘱记录</el-button>
				<el-button size="mini">更多操作</el-button>
			</div>
		  </el-table-column>
        </el-table>
    </div>
</template>

<script>
	export default{
		data(){
			return{
				dataList:[
					{
						inpatient_number:1,//住院号
						name:'大脚', //姓名
						history_number:'', //历史住院号
						bed_number:'无床号', //床号
						sex:'男', //性别
						age:'64岁',//年龄
						day:16,//住院天数
						department:'系统科室',//科室
						region:'' ,//病区
						doctor:'张三',//责任医生,
						measure_number:20,//测量次数
						blood_sugar:4.6//近期血糖
					},
					{
						inpatient_number:1,//住院号
						name:'大脚', //姓名
						history_number:'', //历史住院号
						bed_number:'无床号', //床号
						sex:'男', //性别
						age:'64岁',//年龄
						day:16,//住院天数
						department:'系统科室',//科室
						region:'' ,//病区
						doctor:'张三',//责任医生,
						measure_number:20,//测量次数
						blood_sugar:4.6//近期血糖
					}
				]
			}
		}
	}
</script>